<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>花田喜铺</title>
<link rel="stylesheet" type="text/css" href="Style/style.css"  />
<script type="text/javascript" src="Js/jquery.min.js" ></script>
<script type="text/javascript" src="Js/common.js" ></script>
</head>

<body>
<div class="main">
	<?php
	include('include/header.php');
	?>
	<div class="clear"></div>
	<div class="middle">
		<div class="flashs"></div>
		<div class="images">
		<?php
		foreach($case1 as $case1Item){
		?>
			<div class="images-item"><a href="<?=$case1Item['link']?>" ><img src="Upload/<?=$case1Item['image_src']?>"  alt="<?=$case1Item['title']?>"/></a></div>
		<?php
		}
		?>
		</div>
		<div class="clear"></div>
		<div class="video">
			<div class="more"><a href="index.php?controller=Default&action=Video" >MORE>></a></div>
			<div class="player"><img src="Images/player.png" /></div>
			<div class="playlist">
				<ul>
				<?php
				foreach($videos as $video){
				?>
					<li file="<?=$video['ext1']?>"><img src="Upload/<?=$video['image_src']?>"  title="<?=$video['title']?>"/></li>
				<?php
				}
				?>
				</ul>
				<div class="clear"></div>
			</div>
		</div>
		<div class="case">
			<div class="more"><a href="index.php?controller=Default&action=Case" >MORE>></a></div>
			<ul class="case">
			<?php
			foreach($case2 as $case2Item){
			?>
				<li><a href="<?=$case2Item['link']?>" ><img src="Upload/<?=$case2Item['image_src']?>" /></a></li>
			<?php
			}
			?>
			</ul>
		</div>
		<div class="clear"></div>
		<div class="partner">
			<div class="more"><a href="index.php?controller=Default&action=News" >MORE>></a></div>
			<?php
			foreach($teams as $teamItem){
			?>
			<div class="desinger">
				<ul class="list">
					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td width="36" height="20">姓名：</td>
							<td height="20"><?=$teamItem['title']?></td>
						</tr>
						<tr>
							<td height="20">职位：</td>
							<td height="20"><?=$teamItem['pclasses']['name']?></td>
						</tr>
						<tr>
							<td height="20">&nbsp;</td>
							<td height="20">&nbsp;</td>
						</tr>
						<tr>
							<td height="20" colspan="2" align="left"><a href="index.php?controller=Default&action=newDetail&nid=<?=$teamItem['article_id']?>" >查看简介</a></td>
						</tr>
					</table>
				</ul>
				<ul file="Upload/<?=$teamItem['image_src']?>" class="photo" style="background: url(Upload/m_4db7dbf106ca8.jpg) no-repeat scroll center center transparent;">
				</ul>
				<div class="clear"></div>
			</div>			
			<?php
			}
			?>
		</div>
		<div class="general">
			<div class="more"><a href="index.php?controller=Default&action=News&t=3" >MORE>></a></div>
			<ul>
			<?php
			$i=1;
			foreach($generals as $general){
			?>
				<li><a href="javascript:void(0)"><span>No<?=$i?></span><?=$general['title']?></a>
					<ul class="general-content">
						<img class="general-img" src="Upload/s_4db9191d7eae8.jpg" /><?=$general['ext6']?>&nbsp;&nbsp;<a href="index.php?controller=Default&action=newDetail&nid=<?=$general['article_id']?>" >详细</a>
					</ul>
					<div class="clear"></div>
				</li>
			<?php
				$i++;
			}
			?>				
			</ul>
		</div>
		<div class="clear"></div>
	</div>
</div>
</div>
<script language="javascript">
var arr = [];
<?php
for($i=0;$i<count($lunbo);$i++){
	echo 'arr['.$i.'] = ["Upload/'.$lunbo[$i]['image_src'].'","'.$lunbo[$i]['title'].'","'.$lunbo[$i]['link'].'"];';
}
?>

$(function(){
	$(".flashs").flash(720,400,arr);
	$(".playlist>ul>li").click(function(){
		$(".player").flvPlayer($(this).attr("file"),399,326);
	}).eq(0).click();
	$(".general>ul>li>a").click(function(){
		$(".general>ul>li").removeClass("sel");
		$(".general>ul>li>ul").hide();
		$(this).parent().addClass("sel");
		$(this).parent().find("ul").show(600);
		return false;
	}).eq(0).click();
	$(".desinger").hover(function(){
		$(this).addClass("sel");	
	},function(){
		$(this).removeClass("sel");
	});
	//策划团队
	$("ul.photo").each(function(){
		$(this).css("background","url("+$(this).attr("file")+") center center no-repeat");	
	});
});

</script>
<?php
include('include/footer.php');
?>
</body>
</html>